package com.ctgu.springboot.controller;


import com.ctgu.springboot.entity.Log;
import com.ctgu.springboot.service.LogService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * <p>
 *  前端控制器
 * </p>
 *
 * @author cs
 * @since 2023-07-07
 */
@RestController
@RequestMapping("/log")
public class LogController {
    @Autowired
    private LogService logService;
    //个人日志信息列表
    @RequestMapping("list")
    public List<Log> list(){
        return logService.list();
    }
}
